home *** CD-ROM | disk | FTP | other *** search
- Path: nntp.teleport.com!usenet
- From: GHouck <hksys@teleport.com>
- Newsgroups: comp.lang.c
- Subject: Re: file reading help
- Date: 11 Apr 1996 20:35:00 GMT
- Organization: systems hk
- Message-ID: <4kjqdk$34m@nadine.teleport.com>
- References: <wd5axYAJAKyZ088yn@egnatia.ee.auth.gr>
- NNTP-Posting-Host: ip-pdx09-42.teleport.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 32bit)
-
- Theodore Chronis <tchronis@egnatia.ee.auth.gr> wrote:
- >I am learning the basic principles of Information Theory , and i want to
- >count the entropy of certain binary files.
- >So i need an utilitie that will read any file , storing all bytes in an array
- >of length = Size of the file .
- >example let suppose that :
- ><file test.dat>
- >fglhefoghe vjeopjejge gjergjerj erg
- >
- >Then the C program will do the following procedure:
- >a[1]=f
- >a[2]=g
- >a[3]=l
-
- Is there a question in the above? How about files that exceed your
- available memory? More information is needed.
- Yours, Geoff Houck
-
-